home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / security / netlog-1.02 / extract / parser.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-20  |  725 b   |  39 lines

  1. /*
  2.      extract - A network log processor
  3.      Copyright (C) 1993 Douglas Lee Schales, David K. Hess, David R. Safford
  4.  
  5.      Please see the file `COPYING' for the complete copyright notice.
  6.  
  7. parser.h - 03/20/93
  8.  
  9. */
  10. #ifndef __PARSER_H__
  11. #define __PARSER_H__
  12.  
  13. struct parsenode {
  14.      struct parsenode *next; /* for stack */
  15.      int nodetype;
  16. #define KEY 0
  17. #define VAL 1
  18. #define OPER 2
  19. #define UOPER 3
  20.      unsigned long nodeval;
  21.      struct parsenode *lhs;
  22.      struct parsenode *rhs;
  23. };
  24.  
  25. struct actionlist {
  26.      struct actionlist *next;
  27.      int action;
  28. };
  29.  
  30. struct parsetree {
  31.      struct parsetree *next;
  32.      struct parsenode *conditions;
  33.      struct actionlist *actions;
  34. };
  35.  
  36. extern struct parsetree *parse(void);
  37.  
  38. #endif
  39.